
$(function () {
    BootstrapTableUtil.initTableDataByServerAndTableId("/bflow/gtasks/list","","waitList");

    BootstrapTableUtil.initTableDataByServerAndTableId("/bflow/instance/list","","applyList");
})


function waitStatusFormatter(value, row, index){
    return '<label class="label label-success">待处理</label>';
}

function waitOperationFormatter(value, row, index){
    var str='<a href="#" onclick="drawBoardView(\''+row.instanceId+'\')" class="btn btn-primary btn-xs" style="margin-left: 5px">查看画板</a>';
    str+='<a href="#" onclick="process(\''+row.instanceId+'\')" class="btn btn-primary btn-xs" style="margin-left: 5px">处理流程</a>';
    return  str;
}




function drawBoardView(id){
    window.location.href="/static/bflow/ui/drawBoard/drawView.html?instansceId="+id;
}

function process() {

}


function waitOperationFormatter(value, row, index){
    var str='<a href="#" onclick="drawBoardView(\''+row.instanceId+'\')" class="btn btn-primary btn-xs" style="margin-left: 5px">查看画板</a>';
    str+='<a href="#" onclick="process(\''+row.instanceId+'\')" class="btn btn-primary btn-xs" style="margin-left: 5px">处理流程</a>';
    return  str;
}

function appLyOperationFormatter(value, row, index){
    var str='<a href="#" onclick="drawBoardView(\''+row.id+'\')" class="btn btn-primary btn-xs" style="margin-left: 5px">查看画板</a>';
    return  str;
}


function drawBoardView(id){
    window.location.href="/static/bflow/ui/drawBoard/drawView.html?instansceId="+id;
}





